package com.zhong.wechat.handler;

import com.zhong.wechat.enums.WeChatMessageTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
public class UnSubscribeMsgHandler implements WeChatMegHandler{
    @Override
    public WeChatMessageTypeEnum getMsgType() {
        return WeChatMessageTypeEnum.UNSUBSCRIBE;
    }

    @Override
    public String dealMsg(Map<String, String> msgMap) {
        log.info("用户 {} 取消关注了公众号",msgMap.get("FromUserName"));
        return null;
    }
}
